package com.tanhua.dubbo.api.mongo;

import com.tanhua.domain.mongo.Comment;
import com.tanhua.vo.PageResult;

public interface CommentApi {
	
    //分页查询
    PageResult findAll(Integer page, Integer pageSize, String publishId);

    //保存
    Integer save(Comment comment);

    //删除
    Integer remove(Comment comment);

    PageResult findByPublishUserId(Long userId, int commentType, Integer page, Integer pagesize);

    //分页查询
    public PageResult findAll(Integer page, Integer pageSize, String publishId,Integer commentType);

    PageResult findAllVideosComments(Integer page, Integer pagesize, String publishId);
}
